﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Configuration;

namespace Service.FilesStrategy
{
    //通过这个来调用具体策略
    public  class FileContext
    {
        private Strategy _strategy;
        private List<IFormFile> _formfiles;
        public FileContext(Strategy strategy,List<IFormFile> formFiles)
        {
            _formfiles = formFiles;
            _strategy = strategy;   

        }
        public async Task<string> ContextInterface()
        {
            return await _strategy.uoload(_formfiles);

        }
    }
}
